#ifndef AUDIOMANAGER_H
#define AUDIOMANAGER_H

#include <QObject>

#include <QDebug>
#include <QtCore>
#include <QAudioOutput>
#include <QAudioInput>


class AudioManager : public QObject
{
    Q_OBJECT
public:
    explicit AudioManager(QObject *parent = 0);
    int packetCounter;

private:


    QTimer* playbackTimer;
    int counter;


    QFile inputFile;           // class member.
    QAudioOutput *audioOutput; // class member.

    QIODevice* playbackDevice;
    QByteArray d600;
    QByteArray d1200;




signals:
    void onset();

public slots:
    void stop();
    void play();
    void startPlayback();

};

#endif // AUDIOMANAGER_H
